<%@ page contentType="text/html; charset=UTF-8" language="java" pageEncoding="UTF-8"   errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<title>支付请求 提交中......</title>
</head>
	<body>
	<!--================= post 方式提交支付请求 start =====================-->
<form name="form2" id="form2" action="${ccbParam.serverUrl }" method="post">
<input type="button" onclick="CreateOrderAndOrderItems()" class="button" data-options="iconCls:'icon-save'" value="提交" >
 </form>
	<!--================= post 方式提交支付请求 end =====================-->
<script type="text/javascript">
//c1n_hz
var c1n_hz = new Object();
c1n_hz.djbh = "B2BZ0100233017"
c1n_hz.djbs = "XSF"
c1n_hz.rq = "2013-09-21"
c1n_hz.dwbh = "DWI00007246"
c1n_hz.shenhe = "是"
c1n_hz.is_zx = "否"
c1n_hz.yishj = "否"
c1n_hz.djlx = "210"
c1n_hz.yuansph = null
c1n_hz.kaiprq = "2013-09-30"
c1n_hz.ontime = "13:22:15"
c1n_hz.ydhrq = "2010-09-08"
c1n_hz.heth = null
c1n_hz.piaohao = "王玉春00011"
c1n_hz.bm = "宣城医药"
c1n_hz.ywy = "韦小宝"
c1n_hz.username = "韦小宝"
c1n_hz.shenchr = null
c1n_hz.shenhr = null
c1n_hz.shenhrq = "2010-09-08"
c1n_hz.shenhyj = null
c1n_hz.yanshr = null
c1n_hz.yansrq = "2010-09-08"
c1n_hz.danjlx = null
c1n_hz.bezzs = "是"
c1n_hz.beizhu = "王*街道现金+"
c1n_hz.bendian = "Z01"
c1n_hz.is_yckp = null
c1n_hz.use_ysyf = null
c1n_hz.ysyfje = "0"
c1n_hz.ywbmid = "DBM00000002"
c1n_hz.ywyid = "ZIY00000149"
c1n_hz.fdbs = null
c1n_hz.yckrq = "2010-09-08"
c1n_hz.shplx = "P"
c1n_hz.printid = null
c1n_hz.fuhr = null
c1n_hz.is_shouh = "否"
c1n_hz.kaipy = "韦小宝"
c1n_hz.is_dx = null
c1n_hz.thfs = "配送"
c1n_hz.dhwd = null
c1n_hz.ckwd = null
c1n_hz.is_lc = "否"
c1n_hz.shenhe_yw = "否"
c1n_hz.shenhrq_yw = "2010-09-08"
c1n_hz.shenhr_yw = null
c1n_hz.shenhyj_yw = null
c1n_hz.xgdjbh = null
c1n_hz.shenhrq_ty = "2010-09-08"
c1n_hz.shenhr_ty = null
c1n_hz.shenhyj_ty = null
c1n_hz.shenhe_ty = "否"
c1n_hz.shouhr = null
c1n_hz.yunsfs = null
c1n_hz.chph = null
c1n_hz.leixing = null
c1n_hz.wtyhdh = null
c1n_hz.wtysdw = null
c1n_hz.wenkfs = null
c1n_hz.wenkzhk = null
c1n_hz.jiasy = null
c1n_hz.chlmch = null
c1n_hz.yunsgj = null
c1n_hz.psdwmch = null

//c1n_mx
//#region c1n_mx
var c1n_mx = new Array(2);
var c1n_mx1 = new Object();
c1n_mx1.djbh = "B2BZ0100233017"
c1n_mx1.dj_sn = "3"
c1n_mx1.spid = "SPH00013431"
c1n_mx1.dj_sort = "2"
c1n_mx1.is_zx = "否"
c1n_mx1.xgdjbh = null
c1n_mx1.recnum = "0"
c1n_mx1.duiydjbh = null
c1n_mx1.duiydj_cn = "0"
c1n_mx1.dw = "盒"
c1n_mx1.hw = "HWI00000001"
c1n_mx1.jlgg = "400"
c1n_mx1.baozhshl = "0"
c1n_mx1.lingsshl = "10"
c1n_mx1.shl = "10"
c1n_mx1.dj = "18"
c1n_mx1.hshj = "18"
c1n_mx1.koul = "100"
c1n_mx1.je = "180"
c1n_mx1.shlv = "0"
c1n_mx1.she = "0"
c1n_mx1.hsje = "180"
c1n_mx1.lshj = "25"
c1n_mx1.lshje = "250"
c1n_mx1.yiwchsl = "10"
c1n_mx1.beizhu = null
c1n_mx1.pihao = "20130301"
c1n_mx1.zengp = "否"
c1n_mx1.ticje = "0"
c1n_mx1.nticje = "0"
c1n_mx1.zticje = "0"
c1n_mx1.is_ft = null
c1n_mx1.chbdj = "16.444414"
c1n_mx1.thyy = null
c1n_mx1.baozhiqi = "41518"
c1n_mx1.sxrq = "41852"
c1n_mx1.miejph = null
c1n_mx1.zhilzhk = null
c1n_mx1.yanshjl = null
c1n_mx1.pihao2 = "20130301"
c1n_mx1.dchw = null
c1n_mx1.yyid = null
c1n_mx1.yymch = null
c1n_mx1.refywy = null
c1n_mx1.bm_info = null
c1n_mx1.jwh = null
c1n_mx1.zhdcbj = "0"
c1n_mx1.shouhsl = "0"
c1n_mx1.phyq = null
c1n_mx1.phyqlx = null
c1n_mx1.jsshl = null
c1n_mx1.is_jush = "否"
c1n_mx1.shshl = null
c1n_mx1.is_shouh = "否"
c1n_mx1.dhwd = null
c1n_mx1.jusyy = null
c1n_mx[0] = c1n_mx1;

var c1n_mx2 = new Object();
c1n_mx2.djbh = "B2BZ0100233017"
c1n_mx2.dj_sn = "2"
c1n_mx2.spid = "SPH00013431"
c1n_mx2.dj_sort = "2"
c1n_mx2.is_zx = "否"
c1n_mx2.xgdjbh = null
c1n_mx2.recnum = "0"
c1n_mx2.duiydjbh = null
c1n_mx2.duiydj_cn = "0"
c1n_mx2.dw = "盒"
c1n_mx2.hw = "HWI00000001"
c1n_mx2.jlgg = "400"
c1n_mx2.baozhshl = "0"
c1n_mx2.lingsshl = "10"
c1n_mx2.shl = "10"
c1n_mx2.dj = "18"
c1n_mx2.hshj = "18"
c1n_mx2.koul = "100"
c1n_mx2.je = "180"
c1n_mx2.shlv = "0"
c1n_mx2.she = "0"
c1n_mx2.hsje = "180"
c1n_mx2.lshj = "25"
c1n_mx2.lshje = "250"
c1n_mx2.yiwchsl = "10"
c1n_mx2.beizhu = null
c1n_mx2.pihao = "20130301"
c1n_mx2.zengp = "否"
c1n_mx2.ticje = "0"
c1n_mx2.nticje = "0"
c1n_mx2.zticje = "0"
c1n_mx2.is_ft = null
c1n_mx2.chbdj = "16.444414"
c1n_mx2.thyy = null
c1n_mx2.baozhiqi = "41518"
c1n_mx2.sxrq = "41852"
c1n_mx2.miejph = null
c1n_mx2.zhilzhk = null
c1n_mx2.yanshjl = null
c1n_mx2.pihao2 = "20130301"
c1n_mx2.dchw = null
c1n_mx2.yyid = null
c1n_mx2.yymch = null
c1n_mx2.refywy = null
c1n_mx2.bm_info = null
c1n_mx2.jwh = null
c1n_mx2.zhdcbj = "0"
c1n_mx2.shouhsl = "0"
c1n_mx2.phyq = null
c1n_mx2.phyqlx = null
c1n_mx2.jsshl = null
c1n_mx2.is_jush = "否"
c1n_mx2.shshl = null
c1n_mx2.is_shouh = "否"
c1n_mx2.dhwd = null
c1n_mx2.jusyy = null
c1n_mx[1] = c1n_mx2;

function CreateOrderAndOrderItems() {
	var jsonjxd = { "jsonjxddhz": c1n_hz, "jsonjxddmx": c1n_mx };
    var jsonjxdstring = JSON.stringify(jsonjxd);
    alert(jsonjxdstring)
    var jsoninf = new Object();
    jsoninf.jsoninf = jsonjxdstring;

    var jsoninfstring = JSON.stringify(jsoninf);
    alert(jsoninfstring)
    jQuery.support.cors = true;
    $.ajax({
        type: "POST",
        contentType: "application/json;utf-8",
        crossDomain: true,
        url: "http://windows-oas41vm:99/KSOABusiness.asmx/CreateOrderAndOrderItems",
        async: false,	// 同步操作
        cache: false,
        data: jsoninfstring,
        dataType: "json",
        success: function (data) {
            alert(data);
            alert(data.code);
        }
    });
}
</script>	
	
</body>

</html>


